package com.tyc.lifecycle.model;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class Rabbit {

    @PostConstruct
    public void init(){
        System.out.println("rabbit init...");
    }

    @PreDestroy
    public void destroy(){
        System.out.println("rabbit destroy...");
    }
}
